package com.tequila.core.service;

import com.tequila.domain.dto.CardDto;
import com.tequila.domain.entity.Card;
import com.tequila.domain.query.CardQuery;

import fe.core.Pagination;

import java.util.List;

public interface CardService {

    public Pagination<CardDto> queryPageListByParam(CardQuery query);

    public CardDto queryById(Long id);

    public List<CardDto> queryByIdList(List<Long> idList);

    public List<CardDto> queryListByParam(CardQuery query);

    public Long insert(Card entity);

    public Long save(Card entity);

    public int updateById(Card param);

    public int updateSelectiveById(Card param);

    public int deleteById(Long id);

    public int deleteByIdList(List<Long> idList);
}
